Beta function

In mathematics, the beta function, also called the Euler integral of the first kind, is a special function defined by


 \mathrm{\Beta}(x,y) = \int_0^1t^{x-1}(1-t)^{y-1}\,dt
\!

for \textrm{Re}(x), \textrm{Re}(y) > 0.\,

The beta function was studied by Euler and Legendre and was given its name by Jacques Binet; its symbol Β is a Greek capital β rather than the similar Latin capital b.

Contents

Properties

The beta function is symmetric, meaning that


 \Beta(x,y) = \Beta(y,x).
\!

When x and y are positive integers, it follows trivially from the definition of the gamma function \Gamma\ that:


 \Beta(x,y)=\dfrac{(x-1)!\,(y-1)!}{(x%2By-1)!}
\!

It has many other forms, including:


 \Beta(x,y)=\dfrac{\Gamma(x)\,\Gamma(y)}{\Gamma(x%2By)}
\!

 \Beta(x,y) =
  2\int_0^{\pi/2}(\sin\theta)^{2x-1}(\cos\theta)^{2y-1}\,d\theta,
  \qquad \mathrm{Re}(x)>0,\ \mathrm{Re}(y)>0
\!

 \Beta(x,y) =
  \int_0^\infty\dfrac{t^{x-1}}{(1%2Bt)^{x%2By}}\,dt,
  \qquad \mathrm{Re}(x)>0,\ \mathrm{Re}(y)>0
\!

 \Beta(x,y) =
  \sum_{n=0}^\infty \dfrac{{n-y \choose n}} {x%2Bn},
\!

 \Beta(x,y) = \frac{x%2By}{x y} \prod_{n=1}^\infty \left( 1%2B \dfrac{x y}{n (x%2By%2Bn)}\right)^{-1},
\!

 \Beta(x,y)\cdot(t \mapsto t_%2B^{x%2By-1}) = (t \to t_%2B^{x-1}) * (t \to t_%2B^{y-1}) \qquad x\ge 1, y\ge 1,
\!

 \Beta(x,y) \cdot \Beta(x%2By,1-y) =
  \dfrac{\pi}{x \sin(\pi y)},
\!

where t \mapsto t_%2B^x is a truncated power function and the star denotes convolution. The second identity shows in particular \Gamma(1/2) = \sqrt \pi. Some of these identities, e.g. the trigonometric formula, can be applied to deriving the volume of an n-ball in Cartesian coordinates.

Euler's integral for the beta function may be converted into an integral over the Pochhammer contour C as

\displaystyle (1-e^{2\pi i\alpha})(1-e^{2\pi i\beta})\Beta(\alpha,\beta) =\int_C t^{\alpha-1}(1-t)^{\beta-1} \, dt.

This Pochhammer contour integral converges for all values of α and β and so gives the analytic continuation of the beta function.

Just as the gamma function for integers describes factorials, the beta function can define a binomial coefficient after adjusting indices:

{n \choose k} = \frac1{(n%2B1) \Beta(n-k%2B1, k%2B1)}.

Moreover, for integer n, \Beta\, can be integrated to give a closed form, an interpolation function for continuous values of k:

{n \choose k} = (-1)^n n! \cfrac{\sin (\pi k)}{\pi \prod_{i=0}^n (k-i)}.

The beta function was the first known scattering amplitude in string theory, first conjectured by Gabriele Veneziano. It also occurs in the theory of the preferential attachment process, a type of stochastic urn process.

Relationship between gamma function and beta function

To derive the integral representation of the beta function, write the product of two factorials as


 \Gamma(x)\Gamma(y) =
  \int_0^\infty\ e^{-u} u^{x-1}\,du \int_0^\infty\ e^{-v} v^{y-1}\,dv
=\int_0^\infty\int_0^\infty\ e^{-u-v} u^{x-1}v^{y-1}\,du  \,dv.
\!

Changing variables by putting u=zt, v=z(1-t) shows that this is


\int_{z=0}^\infty\int_{t=0}^1\ e^{-z} (zt)^{x-1}(z(1-t))^{y-1}z\,dt  \,dz
=\int_{z=0}^\infty \ e^{-z}z^{x%2By-1} \,dz\int_{t=0}^1t^{x-1}(1-t)^{y-1}\,dt.
\!

Hence


 \Gamma(x)\,\Gamma(y)=\Gamma(x%2By)\Beta(x,y) .

The stated identity may be seen as a particular case of the identity for the integral of a convolution. Taking

f(u):=e^{-u} u^{x-1} 1_{\R_%2B} and g(u):=e^{-u} u^{y-1} 1_{\R_%2B}, one has:
\Gamma(x)\Gamma(y)=\left(\int_{\R}f(u)du\right)\left(\int_{\R}g(u)du\right)=\int_{\R}(f*g)(u)du=\Beta(x, y)\,\Gamma(x%2By).

Derivatives

We have

{\partial \over \partial x} \mathrm{B}(x, y) = \mathrm{B}(x, y) \left( {\Gamma'(x) \over \Gamma(x)} - {\Gamma'(x %2B y) \over \Gamma(x %2B y)} \right) = \mathrm{B}(x, y) (\psi(x) - \psi(x %2B y)),

where \ \psi(x) is the digamma function.

Integrals

The Nörlund–Rice integral is a contour integral involving the beta function.

Approximation

Stirling's approximation gives the asymptotic formula

\Beta(x,y) \sim \sqrt {2\pi } \frac{{x^{x - \frac{1}{2}} y^{y - \frac{1}{2}} }}{{\left( {x %2B y} \right)^{x %2B y - \frac{1}{2}} }}

for large x and large y. If on the other hand x is large and y is fixed, then

\Beta(x,y) \sim \Gamma(y)\,x^{-y}.

Incomplete beta function

The incomplete beta function, a generalization of the beta function, is defined as

 \Beta(x;\,a,b) = \int_0^x t^{a-1}\,(1-t)^{b-1}\,dt. \!

For x = 1, the incomplete beta function coincides with the complete beta function. The relationship between the two functions is like that between the gamma function and its generalization the incomplete gamma function.

The regularized incomplete beta function (or regularized beta function for short) is defined in terms of the incomplete beta function and the complete beta function:

 I_x(a,b) = \dfrac{\Beta(x;\,a,b)}{\Beta(a,b)}. \!

Working out the integral (one can use integration by parts) for integer values of a and b, one finds:

 I_x(a,b) = \sum_{j=a}^{a%2Bb-1} {(a%2Bb-1)! \over j!(a%2Bb-1-j)!} x^j (1-x)^{a%2Bb-1-j}.

The regularized incomplete beta function is the cumulative distribution function of the Beta distribution, and is related to the cumulative distribution function of a random variable X from a binomial distribution, where the "probability of success" is p and the sample size is n:

F(k;n,p) = \Pr(X \le k) = I_{1-p}(n-k, k%2B1).

Properties

 I_0(a,b) = 0 \,
 I_1(a,b) = 1 \,
 I_x(a,b) = 1 - I_{1-x}(b,a) \,
 I_x(a%2B1,b) = I_x(a,b)-\frac{x^a(1-x)^b}{a B(a,b)} \,

Calculation

Even if unavailable directly, the complete and incomplete Beta function values can be calculated using functions commonly included in spreadsheet or Computer algebra systems. With Excel as an example, using the GammaLn and (cumulative) Beta distribution functions, we have:

Complete Beta Value = Exp(GammaLn(a) + GammaLn(b) - GammaLn(a + b))

and,

Incomplete Beta Value = BetaDist(x, a, b) * Exp(GammaLn(a) + GammaLn(b) - GammaLn(a + b)).

These result from rearranging the formulae for the Beta distribution, and the incomplete beta and complete beta functions, which can also be defined as the ratio of the logs as above.

Similarly, in MATLAB and GNU Octave, betainc (Incomplete beta function) computes the regularized incomplete beta function - which is, in fact, the Cumulative Beta distribution - and so, to get the actual incomplete beta function, one must multiply the result of betainc by the result returned by the corresponding beta function.

See also

References

External links